//
//  XMEditUserHeadView.m
//  XunMi
//
//  Created by MacBook on 2024/2/28.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMEditUserHeadView.h"

@implementation XMEditUserHeadView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.imgV.image = kUserModel.isMan ? kManHeadImg : kWomanHeadImg;
    
}

- (IBAction)chooseAct:(UIButton *)sender {
    if (self.chooseBlock) {
        self.chooseBlock();
    }
}

- (void)layoutSubviews {
    [super layoutSubviews];
    kCornerRadius(self.imgV, self.imgV.size.width / 2, 3, UIColor.whiteColor);
    kCornerRadius(self.alpV, self.alpV.size.width / 2, 3, UIColor.whiteColor);
}

@end
